package com.xc.quickstart.service;

import com.xc.quickstart.admin.query.CrmConfigQuery;
import com.xc.quickstart.mapper.entity.CrmConfigENT;
import com.xc.quickstart.common.model.ApiResponse;

import java.util.List;

/**
 * 通用配置
 * @author xc
 * @since 2021-04-20 11:47:08
 **/

public interface CrmConfigService {

    ApiResponse selectPage(CrmConfigQuery query);

    ApiResponse save(CrmConfigENT entity);

    ApiResponse update(CrmConfigENT entity);

    String getCurrentValue(String key, String type);

    CrmConfigENT getCurrentENT(String key, String type);

    <T> T getCurrentENT(String key, String type, Class<T> classType);

    <T> List<T> getCurrentENTList(String key, String type, Class<T> classType);

    Integer getTestFlag(String name);

    List<CrmConfigENT> listCurrentENT(String type);

    ApiResponse deleteById(Integer id);
}
